import request from '@/utils/request'

// 查询附详情列表（所有）
export function listAttachedDataAll(query) {
  return request({
    url: '/attachedData/attachedData/listAll',
    method: 'get',
    params: query
  })
}

// 查询附详情列表
export function listAttachedData(query) {
  return request({
    url: '/attachedData/attachedData/list',
    method: 'get',
    params: query
  })
}

// 查询附详情详细
export function getAttachedData(id) {
  return request({
    url: '/attachedData/attachedData/' + id,
    method: 'get'
  })
}

// 新增附详情
export function addAttachedData(data) {
  return request({
    url: '/attachedData/attachedData',
    method: 'post',
    data: data
  })
}

// 修改附详情
export function updateAttachedData(data) {
  return request({
    url: '/attachedData/attachedData',
    method: 'put',
    data: data
  })
}

// 删除附详情
export function delAttachedData(id) {
  return request({
    url: '/attachedData/attachedData/' + id,
    method: 'delete'
  })
}
// 删除附详情
export function logicDelAttachedData(id) {
  return request({
    url: '/attachedData/attachedData/' + id,
    method: 'delete'
  })
}

// 导出附详情
export function exportAttachedData(query) {
  return request({
    url: '/attachedData/attachedData/export',
    method: 'get',
    params: query
  })
}
